
                <div class="box">
                    <h2>
                        <a href="#" id="toggle-grid">Website Configuration</a>
                    </h2>
					
                    <div class="block" >
                        <form name="cat" method="POST" action="<?= base_url(); ?>secure/settings/get_setting">
                            <fieldset>
                                <legend>Select Setting :</legend>
                                <table width="100%" cellpadding="4" cellspacing="4">
                                    <tr> 
                                        <td>
                                             <?php if($this->session->flashdata('message'))
                                                 {
                                                   $msg=$this->session->flashdata('message');
                                                    echo '<font color="red">'.$msg.'</font>';
                                                 }
                                            ?> 
                                    </td>
                                 </tr>
                                    <tr>
                                        <td width="20%">Setting Name </td>
                                        <td width="60%">
							<select name="setting_variable">
							 <option value="">Select Setting --></option>
							 <?php foreach ($settings as $settings): ?>
                                                         <option value="<?= $settings->variable; ?>"><?= $settings->description; ?></option>
                                                         <?php endforeach; ?>
                                        </select>
                                         
                                      </td>
                                        <td width="20%"><label>
                                                <input name="get_value" type="submit" id="get_value" value="Get Setting" />
                                            </label></td>
                                    </tr>
                                </table>
                            </fieldset>
                        </form>
                    </div>
                </div>

                <?php if(isset($setting_id)){ ?>
                
				
		<div class="box">
                  <h2>
                     <a href="#" id="toggle-tables"><?= $setting_description;?></a>
                  </h2>
                     <table width="100%" height="75">
                        <caption>&nbsp;</caption> 
                        <colgroup>
                            <col class="colA" />
                            <col class="colB" />
                            <col class="colC" />
                        </colgroup>
                        <tbody>
                           <form name="keyword" method="POST" action="<?= base_url(); ?>secure/settings/update">
                              <tr id="report">
                                  <th width="13%" height="37"></th>
                                  <td width="71%" align="left" valign="top">
                                    <textarea name="variable_value" cols="50%" rows="2" id="variable_value"><?= $setting_value; ?></textarea></td>
                                    <input name="setting_id" type="hidden" size="0" value="<?= $setting_id; ?>" />
                                    <input name="setting_variable" type="hidden" size="0" value="<?= $setting_variable; ?>" />
                                  <td width="16%" class="currency">
				</td>
                              </tr>
                               <tr id="report">
                                  <th height="26"></th>
                                  <td align="left" valign="top">
                                      <span class="currency">
                                        <input type="submit" name="setting_update" value="Update" onclick="return confirm('Are you sure you want to update?')"/>
                                      </span>
                                  </td>
                                      <td class="currency">&nbsp;</td>
                                </tr>
                           </form>        
			</tbody>
                    </table>
                </div>
				<?php } ?>
         